﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register assembly="DevExpress.Web.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPopupControl" tagprefix="dxpc" %>

<%@ Import Namespace="webapp4U" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>



<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">
<title>Fimex System</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<%--<script src="//ajax.gooFimex System</title>--%>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="JScript/jquery.blockUI.js"></script>

</head>

<body>
<form id="frm" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<script type="text/javascript">
    function pageLoad() {


        $("#<%= btnLogin.ClientID %>").click(function () {
            if ($("#<%= txtUser.ClientID %>").val().length > 0 && $("#<%= txtPass.ClientID %>").val().length > 0 && $("#<%= txtCatcha.ClientID %>").val().length > 0) {
                $.blockUI({
                 message: '<h1>Xin vui lòng chờ xử lý</h1>',
                 css: {
                    border: 'none',
                    padding: '15px',
                    backgroundColor: '#000',
                    '-webkit-border-radius': '10px',
                    '-moz-border-radius': '10px',
                    opacity: .5,
                    color: '#fff'
                }
                });
            }
        });

        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
        function EndRequestHandler(sender, args) {
            $.unblockUI();
        }
    }
    </script>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>


<div class="direct_wrapper">
      <!-- Start header -->
      <div class="direct_header">
      </div>
      <!-- End header -->
      <!-- Start Container main login -->
       <div class="direct_content_login_group">
            <div class="direct_logo_login">
                <img src="<%=Globals.ApplicationPath%>images/logo_trainning_login.png"/>
            </div>
            <div class="direct_content_login">
                <div class="direct_col_content_top" >
                    <div class="direct_col_content_top_1"></div>
                    <div class="direct_col_content_top_2"></div>
                    <div class="direct_col_content_top_3"></div>
                </div>
                <div class="direct_col_content_middle">
                    <div class="direct_title_group_menu">
                        <div class="direct_title_group_menu_1"></div>
                        <div class="direct_title_group_menu_2">
                            <div class="direct_title_menu">
                                <strong><asp:Label ID="Label1" runat="server" Text="<%$ Resources:LanguageResource, Login %>"></asp:Label></strong>
                            </div>
                        </div>
                        <div class="direct_title_group_menu_3"></div>
                    </div>
                    <div class="direct_content_main">
                        <div class="direct_content_main_left">
                            <img alt="" src="<%=Globals.ApplicationPath%>images/img_login_lock.png"/>
                        </div>
                        <div class="direct_content_main_right">
                            <div>
                                <table width="100%" border="0">
                                         <tr>
                                            <td colspan="2">&nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td class="direct_font_bold" width="30%" align="right"><asp:Label ID="Label2" runat="server" Text="<%$ Resources:LanguageResource, LoginName %>" ></asp:Label></td>
                                            <td width="70%" align="left">
                                                <asp:TextBox ID="txtUser"  CssClass="input_full"  runat="server"></asp:TextBox>
                                                 <asp:RequiredFieldValidator ControlToValidate="txtUser" Display="None" ID="RFVNganhHang"
                                            runat="server" ErrorMessage="<%$ Resources:LanguageResource, VLoginName %>"></asp:RequiredFieldValidator>
                                        <cc1:ValidatorCalloutExtender TargetControlID="RFVNganhHang" ID="ValidatorCalloutExtender1"
                                            runat="server" Enabled="True"></cc1:ValidatorCalloutExtender>
                                              
                                            </td>
                                        </tr>

                                        <tr>
                                            <td class="direct_font_bold" align="right"><asp:Label ID="Label3" runat="server" Text="<%$ Resources:LanguageResource, Password %>" ></asp:Label></td>
                                            <td>
                                                <asp:TextBox ID="txtPass" TextMode="Password" CssClass="input_full" runat="server"></asp:TextBox>
                                                
                                                 <asp:RequiredFieldValidator ControlToValidate="txtPass" Display="None" ID="RequiredFieldValidator1"
                                            runat="server" ErrorMessage="<%$ Resources:LanguageResource, VPassword %>"></asp:RequiredFieldValidator>
                                        <cc1:ValidatorCalloutExtender TargetControlID="RequiredFieldValidator1" ID="ValidatorCalloutExtender2"
                                            runat="server" Enabled="True"></cc1:ValidatorCalloutExtender>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="direct_font_bold" align="right"><asp:Label ID="Label5" runat="server" Text="<%$ Resources:LanguageResource, ConfirmationCode %>" ></asp:Label></td>
                                            <td>
                                                <asp:Label ID="lblCatCha" BorderColor="AliceBlue" ForeColor="Blue" BackColor="AliceBlue" Font-Bold="true" runat="server" Text=""></asp:Label>
                                            </td>
                                        </tr>
                                         <tr>
                                            <td class="direct_font_bold" align="right"><asp:Label ID="Label4" runat="server" Text="<%$ Resources:LanguageResource, ConfirmationCode %>" ></asp:Label></td>
                                            <td>
                                                 <asp:TextBox ID="txtCatcha"  CssClass="input_code" runat="server"></asp:TextBox>
                                                 <asp:RequiredFieldValidator ControlToValidate="txtCatcha" Display="None" ID="RequiredFieldValidator2"
                                            runat="server" ErrorMessage="<%$ Resources:LanguageResource, VConfirmCode %>"></asp:RequiredFieldValidator>
                                        <cc1:ValidatorCalloutExtender TargetControlID="RequiredFieldValidator2" ID="ValidatorCalloutExtender3"
                                            runat="server" Enabled="True"></cc1:ValidatorCalloutExtender>
                                               
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>&nbsp;</td>
                                            <td align="center">
                                                <span>
                                                    <%--<a href="#">Quên mật khẩu</a>&nbsp;|&nbsp;--%>
                                                </span>
                                                <asp:Button ID="btnLogin" runat="server" Text="Đăng nhập" 
                                                    onclick="btnLogin_Click" />
                                               
                                            </td>
                                        </tr>

                                </table>
                            </div>
                        </div>
                        <div class="clear"></div>
                    </div>
                </div>
                <div class="direct_col_content_bottom">
                <div class="direct_col_content_bottom_1"></div>
                <div class="direct_col_content_bottom_2"></div>
                <div class="direct_col_content_bottom_3"></div>
                </div>
            </div>
       </div>

      <!-- End Container main login -->
</div>
 <dxpc:ASPxPopupControl ID="MessageBox" PopupHorizontalAlign="WindowCenter"  PopupVerticalAlign="WindowCenter" Font-Bold="true" HeaderText="DRM-S" runat="server" Height="91px" 
        Width="601px">
        <ContentCollection>
<dxpc:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True"></dxpc:PopupControlContentControl>
</ContentCollection>
    </dxpc:ASPxPopupControl>
</ContentTemplate>
</asp:UpdatePanel>

</form>
</body>
</html>